package com.xyulu.entity.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author Xyulu
 * @Date 2021/3/27 23:28
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBean {

    // 传递的参数或配置的项
    private int currentPage; // 当前页
    private int pageSize = 8; // 每页显示多少条

    // 查询数据库
    private int recordCount; // 总记录数
    private List recordList; // 本页的数据列表

    // 总页数
    private int pageCount;
    /**页码列表的开始索引*/
    private int beginPageIndex;
    /**页码列表的结束索引*/
    private int endPageIndex;

    //url前缀
    private String url;

    //需要跳转的url条件后缀
    private String condition;

    public PageBean(Integer currentPage, String url, String condition){
        this.currentPage = currentPage;
        this.url = url;
        this.condition = condition;
    }

}
